package org.linlinjava.litemall.db.service.oder_manage;

import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.order_manage.AgedmallServiceOrderManageMapper;
import org.linlinjava.litemall.db.vo.service_order.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * @author huangfei
 * @create 2021-12-03 14:11
 */
@Service
public class AgedmallServiceOrderService {


    @Resource
    private AgedmallServiceOrderManageMapper agedmallServiceOrderManageMapper;

   // List<ServiceOrderBackDto> getServiceOrderList(SelectServiceOrderListDto selectServiceOrderListDto);

  //  List<ServiceOrderDetailBackDto> getServiceOrderDetailList(@Param("id") Integer id);

    /**
     * 查询在线服务列表信息
     * @param serviceOrderParm
     * @return
     */
    public List<ServiceOrderRetunDto> getServiceOrderListInfo(ServiceOrderParm serviceOrderParm){
        PageHelper.startPage(serviceOrderParm.getPage(), serviceOrderParm.getPageSize());
        return agedmallServiceOrderManageMapper.getServiceOrderListInfo(serviceOrderParm);
    }

    /**
     * 查询在线服务使用记录
     * @param serviceOrderParm
     * @return
     */
   // List<ServiceOrderRetunDto> getServiceOrderHistoryListInfo(ServiceOrderParm serviceOrderParm);


    /**
     * 根据订单编号查询预约中和服务中的订单信息
     * @param serviceOrderId
     * @return
     */
   // SubInfoReturnDto getServiceOrderApplyInfo(String serviceOrderId);


    /**
     * 医生查询在线服务列表信息
     * @param serviceOrderParm
     * @return
     */
   public List<ServiceOrderRetunDto> getServiceDoctoryOrderListInfo(ServiceOrderParm serviceOrderParm){
       PageHelper.startPage(serviceOrderParm.getPage(), serviceOrderParm.getPageSize());
       return agedmallServiceOrderManageMapper.getServiceDoctoryOrderListInfo(serviceOrderParm);
   }
}
